package she_ji_mo_shi.gong_chang.client;

import she_ji_mo_shi.gong_chang.factory.SimplyChartFactory;
import she_ji_mo_shi.gong_chang.model.api.Chart;
import common.util.XmlUtil;

public class ClientUseChartFactory {
    public static void main(String[] args) {
        // use Pie Chart
        // init Pie data
        Chart pie = SimplyChartFactory.getChart("Pie");
        pie.display();
        // use Histogram
        // init Histogram data....
        Chart chart = SimplyChartFactory.getChart(XmlUtil.getChartType());
        chart.display();
    }
}
